Skip to main content

PrimePowerQ

PrimePowerQ[expr] yields True if expr is a power of a prime number, and yields False otherwise. 

Please visit the official Wolfram Language Reference for more details and examples on core symbols.